//商品选项卡

let list=document.querySelectorAll('.list li')
let boxs=document.querySelectorAll('#tab div')
for(let i=0;i<list.length;i++){
	list[i].onclick=function(){

		for(let j=0;j<list.length;j++){
			boxs[j].style.display='none'
			list[j].classList.remove('active')
		}

		boxs[i].style.display='block'
		list[i].classList.add('active')

	}
}





//footer-iconfont
let foolis = document.querySelectorAll('.foo li span')
for (let i = 0; i < foolis.length; i++) {
	foolis[i].onclick = function() {
		for (let j = 0; j < foolis.length; j++) {
			foolis[j].style.color = '#9f9f9f'
		}
		foolis[i].style.color = '#fb3939'

	}
}